package day09API.stream;

import java.io.DataInputStream;
import java.io.FileInputStream;

/**
 * @author DBX
 * @effect
 * @date 2021/8/28 0028 - 16:16
 */
public class DISDemo {
    public static void main(String[] args) throws Exception {
        DataInputStream dis = new DataInputStream(new FileInputStream("File/date"));
        System.out.println(dis.readByte());
        System.out.println(dis.readShort());
        System.out.println(dis.readChar());
        System.out.println(dis.readInt());
        System.out.println(dis.readLong());
        System.out.println(dis.readFloat());
        System.out.println(dis.readDouble());
        System.out.println(dis.readBoolean());
        dis.close();

    }
}
